<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE>
<html>
<head>
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/layout.css" />
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/module_public.css" />
  <script type="text/javascript" src="__PUBLIC__/Js/jquery.js"></script>
  <script type="text/javascript" src="__PUBLIC__/Js/My97DatePicker/WdatePicker.js"></script>
  <script type="text/javascript" src="__PUBLIC__/Js/system.js"></script>
</head>
<body>
  <div class="module_public">
     <div class="module_public_content">
        <h1> >> 修改用户信息 <a href="__ACTION__">【刷新】</a></h1>
     </div>
     <div class="module_public_main">
		<table>
        <form action="__URL__/do_editUser" method="post">
        <input type="hidden" name="u_id" value="<?php echo ($e_info["u_id"]); ?>" />
          <tr>
            <td width="12%" align="right">用户账号:</td>
            <td><input type="text" name="u_username" class="_input" value="<?php echo ($e_info["u_username"]); ?>"/></td>
          </tr>
          <tr>
            <td width="12%" align="right">用户姓名:</td>
            <td><input type="text" name="u_name" class="_input" value="<?php echo ($e_info["u_name"]); ?>"/></td>
          </tr>
          <tr>
            <td width="12%" align="right">用户手机:</td>
            <td><input type="text" name="u_phone" class="_input" value="<?php echo ($e_info["u_phone"]); ?>"/></td>
          </tr>
          <tr>
            <td width="12%" align="right">外部电子邮箱:</td>
            <td><input type="text" name="u_email" class="_input" value="<?php echo ($e_info["u_email"]); ?>"/></td>
          </tr>
          <tr>
            <td width="12%" align="right">内部电子邮箱:</td>
            <td><input type="text" name="u_email_in" class="_input" value="<?php echo ($e_info["u_email_in"]); ?>"/>&nbsp;<font color=red>(收发公司内部邮件使用)</font></td>
          </tr>
          <tr>
            <td width="12%" align="right">性别:</td>
            <?php if($e_info["u_sex"] == '1'): ?><td><input type="radio" name="u_sex" value="1" checked=""/><font color=green>男</font>&nbsp;&nbsp;<input type="radio" name="u_sex" value="2"/><font color=red>女</font></td>
            <?php else: ?>
            <td><input type="radio" name="u_sex" value="1"/><font color=green>男</font>&nbsp;&nbsp;<input type="radio" name="u_sex" value="2"  checked=""/><font color=red>女</font></td><?php endif; ?>
          </tr>
          <tr>
            <td width="12%" align="right">年龄:</td>
            <td><input type="text" name="u_age" class="_input" style="width:50px;" value="<?php echo ($e_info["u_age"]); ?>"/></td>
          </tr>
          <tr>
            <td width="12%" align="right">所属职位:</td>
            <td><select name="u_position" class="_input">
              <?php if(is_array($p_info)): $i = 0; $__LIST__ = $p_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i; if($e_info["u_position"] == $v.p_id): ?><option value="<?php echo ($v["p_id"]); ?>" selected="selected"><?php echo ($v["p_name"]); ?></option>
                <?php else: ?>
                <option value="<?php echo ($v["p_id"]); ?>"><?php echo ($v["p_name"]); ?></option><?php endif; endforeach; endif; else: echo "" ;endif; ?>
            </select></td>
          </tr>
          <tr>
            <td width="12%" align="right">所属部门:</td>
            <td><select name="u_department" class="_input">
              <?php if(is_array($d_info)): $i = 0; $__LIST__ = $d_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i; if($e_info["u_department"] == $v.d_id): ?><option value="<?php echo ($v["d_id"]); ?>" selected="selected"><?php echo ($v["d_name"]); ?></option>
                <?php else: ?>
                <option value="<?php echo ($v["d_id"]); ?>"><?php echo ($v["d_name"]); ?></option><?php endif; endforeach; endif; else: echo "" ;endif; ?>
            </select></td>
          </tr>
          <tr>
            <td width="12%" align="right">是否启用账号:</td>
            <?php if($e_info["u_enable"] == '1'): ?><td><input type="radio" name="u_enable" value="1" checked=""/><font color=green>是</font>&nbsp;&nbsp;<input type="radio" name="u_enable" value="2"/><font color=red>否</font></td>
            <?php else: ?>
            <td><input type="radio" name="u_enable" value="1"/><font color=green>是</font>&nbsp;&nbsp;<input type="radio" name="u_enable" value="2"  checked=""/><font color=red>否</font></td><?php endif; ?>
          </tr>
          <tr>
            <td width="12%" align="right">是否启用文件柜:</td>
            <?php if($s_info["s_upload_is"] == '1'): ?><td><input type="radio" name="s_upload_is" value="1" checked=""/><font color=green>是</font>&nbsp;&nbsp;<input type="radio" name="u_enable" value="2"/><font color=red>否</font></td>
            <?php else: ?>
            <td><input type="radio" name="s_upload_is" value="1"/><font color=green>是</font>&nbsp;&nbsp;<input type="radio" name="u_enable" value="2"  checked=""/><font color=red>否</font></td><?php endif; ?>
          </tr>
          <tr>
            <td width="12%" align="right">文件柜空间大小:</td>
            <td><input type="text" name="s_space" class="_input" value="<?php echo ($s_info["s_space"]); ?>"/>&nbsp;(KB)</td>
          </tr>
          
          <tr>
            <td>&nbsp;</td>
            <td><input type="submit" value="更新信息" class="_button" /></td>
          </tr>
          </form>
        </table>
     </div>
  </div>
</body>
</html>